package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 教师信息对象 Teacher
 *
 * @author ruoyi
 * @date 2022-04-27
 */
public class Teacher extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Integer tid;

    /**
     * 教师编号
     */
    @Excel(name = "教师编号")
    private String tno;

    /**
     * 教师姓名
     */
    @Excel(name = "教师姓名")
    private String tname;

    /**
     * 教师性别
     */
    @Excel(name = "教师性别")
    private String tsex;

    /**
     * 教师生日
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "教师生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date tbirthday;

    /**
     * 教师职称
     */
    @Excel(name = "教师职称")
    private String prof;

    /**
     * 教师专业
     */
    @Excel(name = "教师专业")
    private String depart;

    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    public String getTno() {
        return tno;
    }

    public void setTno(String tno) {
        this.tno = tno;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public String getTsex() {
        return tsex;
    }

    public void setTsex(String tsex) {
        this.tsex = tsex;
    }

    public Date getTbirthday() {
        return tbirthday;
    }

    public void setTbirthday(Date tbirthday) {
        this.tbirthday = tbirthday;
    }

    public String getProf() {
        return prof;
    }

    public void setProf(String prof) {
        this.prof = prof;
    }

    public String getDepart() {
        return depart;
    }

    public void setDepart(String depart) {
        this.depart = depart;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("tid", getTid())
                .append("tno", getTno())
                .append("tname", getTname())
                .append("tsex", getTsex())
                .append("tbirthday", getTbirthday())
                .append("prof", getProf())
                .append("depart", getDepart())
                .toString();
    }
}
